﻿<%@ Page Title="产品信息录入" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="product_input.aspx.cs" Inherits="product_input" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link type="text/css" rel="stylesheet" href="CSS/rte.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/wxm_appmsg_list17e4f5.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/emoji.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/hello.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/ueditor.css" />
    <link type="text/css" rel="Stylesheet" href="CSS/codemirror.css" />
    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"></script>
    <script type="text/javascript" src="js/jquery.rte.js"></script>
    <script type="text/javascript">
        function titlechange() {
            document.getElementById("title").innerText = document.getElementById("ContentPlaceHolder1_TextBox1").value;
            document.getElementById("title").innerHTML = document.getElementById("ContentPlaceHolder1_TextBox1").value;
        }

        </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="container-wrapper">
    <div  id="main" class="container" style="width:960px;">
        <div class="containerBox">
            <div class="boxHeader"><h2>产品录入</h2></div>
            <div class="content" style="width:958px;padding:0px;" >
    <div class="z oh msg-edit">
    <div class="left msg-preview">
        <div class="msg-item-wrapper">
            <div class="msg-item appmsgItem">
                <h4 id="title" class="msg-t">标题</h4>
                <div class="cover" runat="server" id="defaulttip" visible="true">
                    <p class="default-tip">封面图片</p>
                    
                </div>
                <asp:Image Visible="false" ID="img1" runat="server" ImageAlign="bottom" width="320px" style="margin:15px;width:320px"  />
            </div>   
        </div>
    </div>
    <div style="margin-top:31px" class="msg-edit-area">
    <div class="rel msg-editer-wrapper">
        <div class="msg-editer">
        <label class="block">产品名称：<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage="产品名称不能为空" ForeColor="Red" ValidationGroup="ValidataGroup1" />
        </label>
        <asp:TextBox ID="TextBox1" runat="server"  placeholder="输入的产品名称，若包含非中文，如'S100T'，请在前后各输入一个空格"  CssClass="msg-input" onchange="titlechange" />
        <label class="block ">产品图片：</label>
        <asp:FileUpload ID="FileUpload1" runat="server" CssClass="msg-input" Width="254px" />
        <asp:Button ID="Button2" style="padding:2px 8px;background-color:#fff;border:1px solid #d3d3d3;color:#666; height: 33px; width: 50px;" runat="server" Text="上传" onclick="Button2_Click" />
        <label class="block">积分兑换比例：<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox3" ErrorMessage="积分兑换比例不能为空" ForeColor="Red" ValidationGroup="ValidataGroup1"  />
        </label>
        <asp:TextBox ID="TextBox3" runat="server" CssClass="msg-input" placeholder="积分兑换比例为一个整数值，即该产品的价值一元能换算的积分值"  />
        <label class="block">产品分类：</label>
        <asp:DropDownList ID="dropdownlist1" runat="server" CssClass="msg-input"  Width="250px" DataSource="<%#ItemList%>" />
        <label class="block">产品简介：<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox3" ErrorMessage="产品简介不能为空" ForeColor="Red" ValidationGroup="ValidataGroup1" />
        </label>
            <p>
                <textarea name="description" id="id_description" class="rte-zone" rows="15" cols="20" placeholder="产品简介在2000字以内，请认真填写，详实介绍该产品以便个人用户更好地了解产品"></textarea>
            </p>
            <script type="text/javascript">        $('.rte-zone').rte('CSS/rte.css', 'img/');</script>
        </div>
        <div class="oh z shadow">
            <span class="left ls"></span>
            <span class="right rs"></span>
        </div>
        <span class="abs msg-arrow a-out" style="margin-top: 0px;"></span>
        <span class="abs msg-arrow a-in" style="margin-top:0px; "></span>
    </div>
    </div>
    </div>
    <p class="tc msg-btn">
        <asp:Button ID="Button1" CssClass="btnGreen" runat="server" Text="submit" onclick="Button1_Click" ValidationGroup="ValidataGroup1" />
    </p>
    </div>
    <div class="clr"></div>
    </div>
    </div>
    </div>
</asp:Content>